package ieco.utils;

import java.text.Collator;
import java.util.Comparator;
import java.util.Locale;

public class TrierEtudiantsParNom implements Comparator<String> {

	private Collator compareOperator;

	public TrierEtudiantsParNom() {
		compareOperator = Collator.getInstance(Locale.FRENCH);
		compareOperator.setStrength(Collator.PRIMARY);
	}

	public int compare(String s1, String s2) {
		return compareOperator.compare(s1, s2);
	}

}
